package com.xiaoyang.friend.controller.user;

import com.xiaoyang.common.core.domain.PageQueryDTO;
import com.xiaoyang.common.core.domain.TableDataInfo;
import com.xiaoyang.friend.service.user.IUserMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController()
@RequestMapping("/user/message")
public class UserMessageController {

    @Autowired
    private IUserMessageService userMessageService;

    /**
     * 获取用户消息列表
     * @param pageQueryDTO
     * @return
     */
    @GetMapping("list")
    public TableDataInfo list(PageQueryDTO pageQueryDTO) {
        return userMessageService.list(pageQueryDTO);
    }
}
